import axios from "@/utils/request.js";

/**
 * 添加老师信息
 * @param {*} teacherInfo 
 * @returns 
 */
export const teacherAddService = (teacherInfo) => {
    return axios.post("/teacherInfo/add",teacherInfo)
}

/**
 * 分页查询老师信息
 * @param {*} pageNo 
 * @param {*} pageSize 
 * @returns 
 */
export const teacherSelectService = (pageNo,pageSize,teacherNameFuzzy) => {
    return axios.get("/teacherInfo/loadDataList",{params:{
        pageNo,pageSize,teacherNameFuzzy
    }})
}

/**
 * 修改老师信息
 * @param {*} teacherInfo 
 * @returns 
 */
export const teacherModifyService = (teacherInfo) => {
    return axios.put("/teacherInfo/updateTeacherInfoByTeacherId",teacherInfo)
}

/**
 * 根据id删除老师信息
 * @param {*} teacherId 
 * @returns 
 */
export const teacherDeleteService = (teacherId) => {
    return axios.delete("/teacherInfo/deleteTeacherInfoByTeacherId",{params:{
        teacherId
    }})
}